﻿<UserControl x:Class="DiscoveryLogic.Analytics.Modules.Networks.CrossDisciplinaryNetwork"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="Auto" Width="450" Loaded="UserControl_Loaded">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="125"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="180"/>
            <RowDefinition Height="36"/>
            <RowDefinition Height="36"/>
            <RowDefinition Height="360"/>
            <RowDefinition Height="36"/>
            <RowDefinition Height="36"/>
            <RowDefinition Height="36"/>
            <RowDefinition Height="36"/>
            <RowDefinition Height="40"/>
        </Grid.RowDefinitions>

        <TextBlock 
            Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="2"
            VerticalAlignment="Top" HorizontalAlignment="Left"
            Margin="5" FontSize="15" TextWrapping="Wrap">
            Given list of grants, this step will build network 
            of disciplinary using publication subjects. 
            Citations are retrieved from citation-grant link 
            (publications that cites grant number). 
            Subjects are extracted from journals containing
            publications and clustered using subject term vector.
            Terms are weighted by centrality score (the higher the 
            score, more important the term is in finding cross-disciplinary 
            journals). Term weight is applyed differently
            to its neighbors and non-reachable journals.
        </TextBlock>

        <Label
            Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Margin="5,0,0,0"
            FontSize="14" FontWeight="Bold" HorizontalAlignment="Left"
            VerticalAlignment="Center">
            Enter grant number or project ID, one entry a line
        </Label>

        <ComboBox
            Grid.Row="2" Grid.Column="0" Grid.ColumnSpan="2" 
            HorizontalAlignment="Left" x:Name="cboGrantKeyType"
            VerticalAlignment="Top" Margin="5,5,0,0" Width="250">
            <ComboBoxItem IsSelected="True">ProjectID</ComboBoxItem>
            <ComboBoxItem>Grant number</ComboBoxItem>
        </ComboBox>

        <TextBox x:Name="txtKeys"
            Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2"
            VerticalAlignment="Top" Margin="5" Height="350"
            TextWrapping="Wrap" AcceptsReturn="True"/>
        
        <Label
            Grid.Row="4" Grid.Column="0" VerticalAlignment="Center"
            Margin="5,0,0,0">
            Grant -> Pubs:
        </Label>
        <ComboBox
            Grid.Row="4" Grid.Column="1" VerticalAlignment="Center"
            Margin="5,0,5,0" x:Name="cboGrantPubRule"></ComboBox>
        
        <Label
            Grid.Row="5" Grid.Column="0" VerticalAlignment="Center"
            Margin="5,0,0,0">
            Pub -> Pubs:
        </Label>
        <ComboBox
            Grid.Row="5" Grid.Column="1" VerticalAlignment="Center"
            Margin="5,0,5,0" x:Name="cboPubPubRule"></ComboBox>

        <Label
            Grid.Row="6" Grid.Column="0" VerticalAlignment="Center"
            Margin="5,0,0,0">
            Pub -> Subj:
        </Label>
        <ComboBox
            Grid.Row="6" Grid.Column="1" VerticalAlignment="Center"
            Margin="5,0,5,0" x:Name="cboPubSubjRule"></ComboBox>

        <Label
            Grid.Row="7" Grid.Column="0" VerticalAlignment="Center"
            Margin="5,0,0,0">
            Network name:
        </Label>
        <TextBox
            Grid.Row="7" Grid.Column="1" VerticalAlignment="Center"
            Margin="5,0,5,0" x:Name="txtNetworkName"></TextBox>

        <StackPanel
            Grid.Row="8" Grid.Column="0" Grid.ColumnSpan="2"
            VerticalAlignment="Center" HorizontalAlignment="Right"
            Orientation="Horizontal" Margin="5">
            <Button x:Name="btnCancel" Content="Cancel" Width="66" Margin="0,0,5,0" Click="btnCancel_Click" />
            <Button x:Name="btnOK" Content="OK" Width="66" Margin="0,0,5,0" Click="btnOK_Click" />
        </StackPanel>
    </Grid>
</UserControl>
